<?php
require_once '../../library/config.php';
require_once '../library/functions.php';

	if (isset($_GET['dv_id']) && $_GET['dv_id'] > 0) {
	$dv_id = (int)$_GET['dv_id'];
	} 
	$sql = "SELECT id, hotentg
							FROM tacgia
							WHERE dv_id = $dv_id and hieu_luc = 1";
	
	$sql2 = "SELECT id, hotentg from tacgia where dv_id = $dv_id";
						
	$result = dbQuery($sql2) ;

	$list1 = '<option value="-1" selected="true">--Chọn người thực hiện--</option>';
	
	while($row = dbFetchArray($result)) {
		list($id, $name) = $row;
		$list1 .= "<option value=\"$id\"";
		$list1 .= ">$name</option>\r\n";
	}	
	echo $list1;
?>